package com.example.demo.store.feign;



import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(serviceId="server2",fallbackFactory = AccountFeignFactory.class)
public interface IAccountFeign {
    /**
     * 扣金额
     */
    @PostMapping("/account/decAccount")
    public int decAccount(@RequestParam("userId") String userId,
                          @RequestParam("amt")int amt);
}
